// 公共面板
.pannel {
    .box-hd {
        padding: 60px 0 16px;
        display: flex;
        align-items: center;
        color: rgba(0, 0, 0, 0.87);

        .left {
            font-size: 32px;
            line-height: 45px;
            flex: 1;
        }
        .right {
            height: 34px;
            width: 90px;
            background-color: rgba(50, 170, 255, 0.16);
            border-radius: 20px;
            font-size: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
            line-height: 1;
            color: #32aaff;
            i {
                display: inline-block;
                margin-right: 4px;
                width: 12px;
                height: 12px;
                background: url(../images/reload.png) no-repeat;
                background-size: contain;
            }
        }
    }
    .box-bd {
        ul {
            display: flex;
            flex-flow: row;
            justify-content: space-between;
            margin: 0 -5px;
            li {
                padding: 0 5px 24px;
                flex: 1;
                display: flex;
                a {
                    width: 100%;
                    height: 100%;

                    p:nth-child(2) {
                        margin: 10px 0 5px;
                    }
                    p:nth-child(3) {
                        font-size: 13px;
                        line-height: 18px;
                        color: #999;
                        padding: 2px 0;
                    }
                }
            }
        }
    }
}

.pannel1 {
    .right {
        width: 76px !important;
        em {
            display: inline-block;
            width: 8px;
            height: 16px;
            margin-left: 4px;
            background: url(../images/arrow-right.png) no-repeat;
            background-position: 50%;
            background-size: contain;
        }
    }
}

// 定义动画
@keyframes move {
    100% {
        background-position-x: -2600px;
    }
}

.logo {
    display: flex;
    .logo-left {
        display: flex;
        position: relative;
        overflow: hidden;
        .left {
            display: flex;
            margin-right: 40px;
            a {
                display: flex;
                align-items: center;
                height: 50px;
                width: 134px;
                img {
                    width: 32px;
                    height: 32px;
                    margin-right: 12px;
                }
                span {
                    vertical-align: middle;
                    font-size: 15px;
                    color: rgba(0, 0, 0, 0.87);
                }
            }
        }
        .right {
            width: 600px;
            height: 50px;
            // background-color: skyblue;
            display: flex;
            align-items: center;
            transition: 0.5s;
            img {
                width: 16px;
                height: 16px;
                margin-right: 7px;
            }
            li {
                display: flex;
                position: relative;
                a {
                    width: 52px;
                    height: 50px;
                    font-size: 14px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    &:hover {
                        color: #32aaff;
                    }
                }
                .special {
                    width: 63px;
                }
                .active {
                    color: #32aaff;
                    &::after {
                        content: '';
                        position: absolute;
                        left: 50%;
                        top: 50%;
                        transform: translate(-50%, 11px);
                        height: 3px;
                        width: 8px;
                        border-radius: 1px;
                        background: #32aaff;
                    }
                }
            }
        }
        .cate-list {
            position: absolute;
            // background-color: pink;
            top: 0px;
            left: 180px;
            width: 550px;
            height: 50px;
            display: flex;
            align-items: center;
            transform: translateY(50px);
            transition: 0.5s;
            li {
                display: flex;
                a {
                    width: 100%;
                    height: 100%;
                    padding: 0 12px;
                    font-size: 14px;
                    color: rgba(0, 0, 0, 0.8);
                    line-height: 50px;
                }
                &:first-child a {
                    padding-left: 0px;
                }
            }
        }
    }

    .logo-right {
        // width: 384px;
        height: 50px;
        display: flex;
        align-items: center;
        .search {
            // width: 180px;
            height: 32px;
            padding: 3px 8px;
            background-color: #f4f4f4;
            border-radius: 15px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            position: relative;
            input {
                margin: 0 8px;
                border: 0;
                font-size: 12px;
                background-color: transparent;
                width: 118px;
                width: 122px;
                height: 16px;
                transition: all 1s;
                position: relative;
                z-index: 999;
            }

            &::after {
                content: '';
                position: absolute;
                top: 8px;
                right: 10px;
                width: 16px;
                height: 16px;
                background: url(../images/search.svg);
            }

            .logo-show {
                position: absolute;
                top: 9px;
                left: 0;
                width: 122px;
                height: 15px;
                // background-color: pink;
                margin: 0 8px;
                padding: 1px 2px;
                font-size: 12px;
                box-sizing: border-box;
                overflow: hidden;
                ul {
                    transition: all 0.5s;
                }
                li {
                    width: 122px;
                    height: 15px;
                    color: #aaaaaa;
                }
            }
        }
        .download {
            display: flex;
            align-items: center;
            position: relative;
            width: 217px;

            li {
                color: rgba(0, 0, 0, 0.8);
                position: relative;
                overflow: visible;
                height: 100%;
                z-index: 1;
                width: 56px;
                height: 50px;
                text-align: center;
                display: flex;
                position: relative;
                a {
                    font-size: 14px;
                    width: 100%;
                    height: 100%;
                    line-height: 50px;
                }
                &.download-app {
                    width: 105px;
                    padding: 0 15px 0 30px;
                }
                &.border::after {
                    content: '';
                    position: absolute;
                    top: 18px;
                    right: -2px;
                    width: 0px;
                    height: 15px;
                    border-left: 1.5px solid rgba(0, 0, 0, 0.2);
                }
            }
            .download-app {
                position: relative;
                .erweima {
                    opacity: 0;
                    pointer-events: none;
                    position: absolute;
                    width: 188px;
                    height: 239px;
                    background: #fff;
                    border-radius: 5px;
                    box-shadow: 0 0 16px -2px rgb(0 0 0 / 20%);
                    left: -35px;
                    top: 50px;
                    transition: opacity 0.2s;
                    padding: 14px;
                    box-sizing: border-box;
                    .tip {
                        position: absolute;
                        width: 10px;
                        height: 10px;
                        border-radius: 3px 0;
                        left: 50%;
                        top: 0;
                        transform: translate(-50%, -50%) rotate(45deg);
                        background: #fff;
                    }

                    .pic {
                        width: 160px;
                        height: 160px;
                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
                    p {
                        font-size: 16px;
                        line-height: 22px;
                        letter-spacing: 1.14px;
                        color: #000;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        margin: 5px 0;
                        img {
                            width: 12px;
                            height: 16px;
                            margin-right: 3px;
                        }
                        .first {
                            font-size: 14px;
                        }
                        .second {
                            color: #32aaff;
                            margin-right: 2px;
                        }
                    }
                }
            }
        }
    }
}

.overview {
    background-color: #fff;
    width: 100%;
    position: fixed;
    height: 50px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}
header {
    padding-top: 50px;
}

// 轮播图
.banner {
    height: 380px;
    background-color: pink;
    .swiper {
        width: 100%;
        height: 100%;
        position: relative;
        --swiper-navigation-color: #fff; /* 单独设置按钮颜色 */
        --swiper-navigation-size: 20px; /* 设置按钮大小 */
        --swiper-pagination-color: #fff; /* 两种都可以 */
    }

    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
        width: 25% !important;
    }
    .show {
        width: 50% !important;
    }

    .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mask {
        position: absolute;
        top: 0;
        width: 25%;
        height: 100%;
        background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(43, 43, 43, 0.4));
        z-index: 1;
    }
    .left {
        left: 0;
    }
    .right {
        right: 0;
        transform: scaleX(-1);
    }

    .arrow {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 32px;
        height: 80px;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
        &.right {
            transform: translate(548px, -50%);
        }
        &.left {
            transform: translate(-580px, -50%);
        }
    }
}

// 导航区
.nav {
    width: 100%;
    padding: 26px 0;
    font-size: 16px;
    color: #fff;
    background-color: #212121;
    ul {
        display: flex;
        justify-content: space-evenly;
        a {
            vertical-align: middle;
            color: #fff;
        }
    }
}

// 主题内容区域
.main {
    position: relative;
    .pic {
        height: 240px;
        width: 180px;
        img {
            width: 100%;
            height: 100%;
        }
    }
    aside {
        margin: 32px 0 0 10px;
        top: 0;
        right: 0;
        width: calc(50% - 590px);
        min-width: 10%;
        position: absolute;
        .title {
            width: 100px;
            height: 100px;
            position: relative;
            cursor: pointer;

            .pic {
                width: 100px;
                height: 100px;
                background: url(../images/animation.png) no-repeat;
                background-size: cover;
                background-position: 0;
                // 使用动画
                animation: move 4s steps(26) infinite;
                transition: all 0.5s;
            }
            p {
                position: absolute;
                bottom: 0px;
                left: 0;
                width: 100px;
                height: 30px;
                background: url(../images/aa2f47650b8c3.png) no-repeat;
                background-size: contain;
                background-position: 50%;
                color: hsla(0, 0%, 100%, 0.9);
                font-size: 12px;
                line-height: 27px;
                text-align: center;
            }
        }
        ul {
            width: 72px;
            height: 230px;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            font-size: 12px;
            background-color: #fff;
            margin-top: 5px;
            text-align: center;
            box-sizing: border-box;
            margin-left: 15px;

            a {
                height: 36px;
                border: 0;
                color: rgba(0, 0, 0, 0.56);
                display: block;
                line-height: 36px;
                font-size: 14px;
                &.back {
                    background-color: transparent;
                    border: 0;
                    transform-origin: center center;
                    cursor: pointer;
                    margin-top: 15px;

                    .pic {
                        background: url(../images/back-to-top.png) no-repeat;
                        width: 17px;
                        height: 19px;
                        margin: auto;
                        vertical-align: middle;
                        background-position: 50%;
                        background-size: contain;
                    }
                    &:hover .pic {
                        background: url(../images/back-to-top-hover.png) no-repeat;
                        background-size: contain;
                    }
                }
            }
            li:nth-child(5) {
                border-bottom: 1px solid #ececec;
            }
            li.active {
                background-color: #6fc3ff;
                a {
                    color: #fff;
                }
            }
        }
    }
}

// 热门速递
.hot {
    .tab {
        margin-right: 710px;
        margin-top: 10px;
        .active {
            color: #32aaff !important;
            position: relative;
            &::after {
                content: '';
                position: absolute;
                width: 8px;
                height: 3px;
                border-radius: 1px;
                background-color: #32aaff;
                bottom: -3px;
                left: 50%;
                transform: translate(-50%);
            }
        }
        a {
            font-size: 14px;
            margin-left: 25px;
            color: rgba(0, 0, 0, 0.56);
            &:hover {
                color: #000;
            }
        }
    }
    .box-bd {
        .pic {
            width: 278px;
            height: 156px;
        }
        &.score {
            display: none;
        }
    }
}

// 底部区域
footer {
    margin-top: 40px;
    padding: 40px 0 26px 0;
    background-color: #212121;
    box-sizing: border-box;

    .top {
        display: flex;
        // position: relative;
        .left {
            width: 284px;
            height: 68px;
            img {
                height: 68px;
                margin-right: 24px;
            }
            span {
                vertical-align: middle;
                font-size: 25px;
                color: hsla(0, 0%, 100%, 0.7);
            }
        }
        .middle {
            width: 260px;
            height: 78px;
            display: flex;
            flex-wrap: wrap;
            a {
                display: block;
                margin: 10px 36px;
                font-size: 14px;
                color: hsla(0, 0%, 100%, 0.7);
            }
        }
        .border {
            width: 1px;
            height: 88px;
            background-color: hsla(0, 0%, 100%, 0.2);
            margin-top: -13px;
            margin-left: 120px;
        }
        .right {
            margin-left: 60px;
            a {
                display: inline-block;
                width: 64px;
                margin: 0 38px;
                position: relative;
                font-size: 12px;
                color: hsla(0, 0%, 100%, 0.5);
                letter-spacing: 0;
                vertical-align: middle;
                -webkit-user-select: none;
                -ms-user-select: none;
                user-select: none;
                text-align: center;
                position: relative;
                img {
                    width: 64px;
                    height: 64px;
                    margin-bottom: 8px;
                    cursor: pointer;
                    opacity: 0.75;
                }
                .focus {
                    padding: 2px 6px;
                    border-radius: 2px;
                    width: 72px;
                    background-color: #fb7299;
                    color: #fff;
                    position: absolute;
                    left: -10px;
                    top: 90px;
                    &::before {
                        content: '';
                        display: block;
                        border: 4px solid transparent;
                        border-bottom-color: #fb7299;
                        position: absolute;
                        top: 0;
                        left: 50%;
                        transform: translate(-50%, -100%);
                    }
                }
                .download {
                    position: absolute;
                    top: 30px;
                    left: -33px;
                    width: 120px;
                }
                .download-img {
                    position: absolute;
                    top: -42px;
                    left: -6px;
                }
                .logo {
                    position: absolute;
                    width: 160px;
                    height: 160px;
                    padding: 16px;
                    top: -42px;
                    left: 50%;
                    background-color: #fff;
                    border-radius: 2px;
                    box-shadow: 0 6px 18px -2px rgb(0 0 0 / 16%);
                    transform: translate(-50%, -110%);
                    box-sizing: border-box;
                    display: none;
                    &::after {
                        content: '';
                        display: block;
                        border: 8px solid transparent;
                        border-top-color: #fff;
                        position: absolute;
                        top: 100%;
                        left: 50%;
                        transform: translate(-50%);
                    }
                    img {
                        width: 100%;
                        height: 100%;
                    }
                }
                .news {
                    top: 0;
                }
            }
        }
    }

    .bottom {
        height: 108px;
        margin-top: 30px;
        display: flex;
        align-items: center;
        img {
            width: 96px;
            height: 36px;
            margin-right: 16px;
            opacity: 0.75;
        }
        .right {
            margin-left: 16px;
            p {
                font-size: 12px;
                color: hsla(0, 0%, 100%, 0.4);
                line-height: 1;
                margin: 12px 0;
            }
        }
    }
}
